XOR data

import numpy as np
np.random.seed(1)
x=np.random.uniform(low=-1, high=1, size=(200, 2))
y=np.ones(len(x))
y[x[:, 0]*x[:, 1]<0]=0
x_train=x[:100, :]
y_train=y[:100]
x_valid=x[100:, :]
y_valid=y[100:]